package cn.wx.scholar.neo4j.entity;

import java.util.List;

import org.neo4j.ogm.annotation.NodeEntity;
import org.neo4j.ogm.annotation.Relationship;

@NodeEntity(label = "patents")
public class Neo4jPatents extends Neo4jBaseEntity{
	
	private String fTitle;
	
	private Long fYear;

	private String fAuthors;

	private String fFos;

	private String fAbstract;

	private String we;

	private String la;

	private Integer cit;

	private String fPublishDate;
	
	private String url;
	
	private String[] urls;
	
	@Relationship(type = "invention",direction="INCOMING")
	private List<Expert> experts;

	public String getfTitle() {
		return fTitle;
	}

	public void setfTitle(String fTitle) {
		this.fTitle = fTitle;
	}

	public Long getfYear() {
		return fYear;
	}

	public void setfYear(Long fYear) {
		this.fYear = fYear;
	}

	public String getfAuthors() {
		return fAuthors;
	}

	public void setfAuthors(String fAuthors) {
		this.fAuthors = fAuthors;
	}

	public String getfFos() {
		return fFos;
	}

	public void setfFos(String fFos) {
		this.fFos = fFos;
	}

	public String getfAbstract() {
		return fAbstract;
	}

	public void setfAbstract(String fAbstract) {
		this.fAbstract = fAbstract;
	}

	public String getWe() {
		return we;
	}

	public void setWe(String we) {
		this.we = we;
	}

	public String getLa() {
		return la;
	}

	public void setLa(String la) {
		this.la = la;
	}

	public Integer getCit() {
		return cit;
	}

	public void setCit(Integer cit) {
		this.cit = cit;
	}

	public String getfPublishDate() {
		return fPublishDate;
	}

	public void setfPublishDate(String fPublishDate) {
		this.fPublishDate = fPublishDate;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public List<Expert> getExperts() {
		return experts;
	}

	public void setExperts(List<Expert> experts) {
		this.experts = experts;
	}

	public String[] getUrls() {
		if(this.url == null || this.url.equals("")) {
			return null;
		}
		
		urls =this.url.split("\\|");
		return urls;
	}

	public void setUrls(String[] urls) {
		this.urls = urls;
	}
	
}
